<?

function smarty_function_ajax_form( $params ) {

	// fetch the url for the request
	$url = Smutty_Utils::getUrl(
		Smutty_Utils::strToHash($params['url'])
	);

	// work out the handler
	$update = $params['update'];
	$handler = $params['handler'];

	// create the link!
	echo '<form onsubmit="smutty_ajaxForm(this,' .
			'\'' . $url . '\',' .
			'\'' . $update . '\',' .
			'\'' . $handler . '\'' .
		');return false;">';

}

?>